//
//  NotificationManager.h
//  VehicleNetStore
//
//  Created by xxcao on 2017/6/26.
//  Copyright © 2017年 MobileArtisan. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum : NSUInteger {
    EPushResponseIOS10Below = 0,
    EPushResponseIOS10Up,
    EPushResponseGeTui,
} EPushResponseType;

typedef NS_ENUM(NSInteger, MsgType) {
    MsgTypeIntegralAdd = 1,//积分增加
    MsgTypeIntegralChange,//积分改变
    MsgTypeOrderGenerated,//订单生成
    MsgTypeNewOrderGenerated,//活动订单生成
    MsgTypePromotionActivities,//特卖活动
    MsgTypeNews,//资讯
};

@interface NotificationManager : NSObject

+ (id)sharedInstance;

- (BOOL)startPush;

+ (BOOL)isMessageNotificationServiceOpen;

- (void)registerDeviceToken:(NSString *)deviceToken;

- (void)handleAMessage:(NSObject *)msg Type:(EPushResponseType)pushResponseType;

@property (nonatomic,assign) MsgType msgType;
@property (nonatomic,copy) NSString *url;

@end
